package com.crm.jdy.common.dto;


import com.baomidou.mybatisplus.annotation.*;
import com.crm.jdy.common.vo.PageVO;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnore;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.Date;

@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class ReturnPlanInfoDto extends PageVO implements Serializable {

    private static final long serialVersionUID = 1616450334L;

    @TableId(value = "iplan_id", type = IdType.ID_WORKER_STR)
    @ApiModelProperty(name = "iplanId" , value = "回款计划id")
    private String iplanId;

    @NotBlank(message = "计划名字非空")
    @ApiModelProperty(name = "iplanName" , value = "计划名字")
    private String iplanName;

    @ApiModelProperty(name = "iplanLevel" , value = "优先级")
    private String iplanLevel;

    @ApiModelProperty(name = "iplanPerson" , value = "负责人")
    private String iplanPerson;

    @ApiModelProperty(name = "iplanStartTime" , value = "开始时间")
    private String iplanStartTime;

    @JsonIgnore
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @ApiModelProperty(name = "iplanEndTime" , value = "结束时间")
    private Date iplanEndTime;

    @ApiModelProperty(name = "iplanTeam" , value = "团队")
    private String iplanTeam;

    @NotNull(message = "活动id不能为空")
    @ApiModelProperty(name = "iplanActid" , value = "活动id")
    private String iplanActid;

    @ApiModelProperty(name = "iplanStatus" , value = "0计划   1真实回款")
    private String iplanStatus;

    @ApiModelProperty(name = "iplanGetMoney" , value = "回款金额")
    private String iplanGetMoney;

    @ApiModelProperty(name = "iplanOwnMoney" , value = "剩余金额")
    private String iplanOwnMoney;

    @JsonIgnore
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @ApiModelProperty(name = "createTime" , value = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    @JsonIgnore
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @ApiModelProperty(name = "updateTime" , value = "更新最新时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;

    @JsonIgnore
    @TableLogic
    @ApiModelProperty(name = "isDelete" , value = "0正常  1删除")
    private Integer isDelete;

    @ApiModelProperty(name = "remarks" , value = "备注信息")
    private String remarks;

}
